package com.piece.core.framework.exception;

import com.piece.core.framework.util.basic.PermissionUtil;

/**
 * 权限异常
 */
public class PermissionException extends FrameWorkException {

    public PermissionException() {
        super(ErrorCode.PERMISSION);
    }

    public PermissionException(String type) {
        super(new ErrorCode(403, PermissionUtil.getMsg(type)));
    }
}
